//
//  JZPageCategoryView.h
//  eStudy(comprehensive)
//
//  Created by 飞猪 on 2018/10/26.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JZPageControllerConfig;
@class JZPageCategoryView;

NS_ASSUME_NONNULL_BEGIN

@protocol JZPageCategoryViewDelegate <NSObject>

- (void)pageCategoryView:(JZPageCategoryView *)pageCategoryView clickedAtIndex:(NSInteger)index;

@end


@interface JZPageCategoryView : UIView 

@property (nonatomic, weak  ) id<JZPageCategoryViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame
                       config:(JZPageControllerConfig *)config
                       titles:(NSArray<NSString *> *)titles
                selectedIndex:(NSInteger)selectedIndex NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END
